package game;

public class Resource {
	private Types type;
	private int currentQuantity;

	public Resource(Types type, int currentQuantity) {
		this.type = type;
		this.currentQuantity = currentQuantity;
	}

	public boolean equals(Object resource) {
		return (resource instanceof Resource && ((Resource) resource).getType()
				.equals(type));
	}

	public Types getType() {
		return type;
	}

	public int getCurrentQuantity() {
		return this.currentQuantity;
	}

	public void increase(int quantity) {
		this.currentQuantity += quantity;

	}

	public void decrease(int quantity){
		currentQuantity -= quantity;
	}

}
